-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serverless Mini Agent] Run in Azure Spring Apps #547
Conversation
…k with java tracer
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #547 +/- ##
=======================================
Coverage ? 70.44%
=======================================
Files ? 213
Lines ? 28455
Branches ? 0
=======================================
Hits ? 20044
Misses ? 8411
Partials ? 0
|
BenchmarksThis comment was omitted because it was over 65536 characters.Please check the Gitlab Job logs to see its output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
* add azure spring app environment type for serverless mini agent * add config.statsd_port to mini agent info endpoint * update mini agent trace endpoint status code and response body to work with java tracer * use different environment variable to identify azure spring apps * only update http response for success responses to traces endpoint * address lint errors * updates comment and formatting * update trace-mini-agent description to include Azure Spring Apps * fix formatting
What does this PR do?
Updates Serverless Mini Agent to run in Azure Spring Apps.
Motivation
Additional Notes
ASCSVCRT_SPRING__APPLICATION__NAME
environment variable to determine if mini agent is running in an Azure Spring Apps environmentinfo
endpoint so Datadog Java Tracer knows where to send trace metrics whenDD_TRACE_TRACER_METRICS_ENABLED
istrue
config.statsd_port
/v0.4/traces
endpoint to work with Datadog Java Tracermessage
to{"rate_by_service":{"service:,env:":1}
. This is just a placeholder to satisfy the response requirement by the Datadog Java Tracer but will need to be updated in a future PR to properly set the trace sampling priorityrate_by_service
here: question: what is rate_by_service? datadog-agent#3031 (comment)Error from Datadog Java Tracer when Mini Agent trace endpoint returns 200 - OK status code
Error from Datadog Java Tracer when Mini Agent trace endpoint returns json with
message
instead of json withrate_by_service
How to test the change?
-javaagent:/persistent/dd-java-agent.jar
to the JVM optionsDD_TRACE_TRACER_METRICS_ENABLED
totrue